package com.tongji.showroom.events
{
	/**
	 * 
	 * @author xuxunjia
	 * 
	 */	
	import flash.events.Event;
	import flash.geom.Vector3D;
	
	public class SetDimensionEvent extends Event
	{
		
		public static const SET_DIMENSION:String = "setDimension";
		public static const CHANGE_DIMENSION:String = "changeDimension";
		
		public var pointVector:Vector.<Vector3D>;
		public var length:Number;
		public var dimension:String;
		public var direction:uint;
		public var distance:Number;
		public var color:uint;
		public var textColor:uint;
		public var isZ:Boolean;
		
		public function SetDimensionEvent(type:String, pointVector:Vector.<Vector3D>, length:Number, dimension:String, direction:uint, distance:Number, color:uint = 0xffffff, textColor:uint = 0, isZ:Boolean = false, bubbles:Boolean=true, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.pointVector = pointVector;
			this.length = length;
			this.dimension = dimension;
			this.direction = direction;
			this.distance = distance;
			this.color = color;
			this.textColor = textColor;
			this.isZ = isZ;
		}
		
		override public function clone():Event
		{
			return new SetDimensionEvent(type, pointVector, length, dimension, direction, distance, color, textColor, isZ, bubbles, cancelable);
		}
		
	}
}